﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using FinPlusWPFControls;
using System.Diagnostics;
using FinPlusCommon;

namespace FinPlusWPFClient
{
    public partial class App : Application, IFinPlusComponent
    {
        public string Id { get; set; }
        public string[] States { get { return new string[] { "Height", "Width", "Left", "Top" }; } }
        public string[] TestStates { get { return new string[] { "ToString" }; } }
        public IFinPlusFunctions Model { get { return _finPlusWindow.Model; } }
        public bool IsValid { get; set; }
        public string ModelTest { get { return null; } }

        private FinPlusWindow _finPlusWindow;

        private void ApplicationStartup(object sender, StartupEventArgs a)
        {
            _finPlusWindow = new FinPlusWindow();
            _finPlusWindow.Load(a.Args[0], a.Args[1], a.Args[2], false, a.Args[3]);
        }

        public void Dock(object component, string dock){ }

        public void Initialise()
        {

        }

        public void CommandRouter(IFinPlusFunction func){ }

        public void Dispose(){ }
    }
}
